public class Test3 {
//    public static void main(String[] args) {
//
////        System.out.println(10 / 0);
////        // 执行结果Exception in thread "main" java.lang.ArithmeticException: / by zero
////
////        int[] arr1 = {1, 2, 3};
////        System.out.println(arr1[100]);
////        // 执行结果Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 100
////
////        int[] arr2 = null;
////        System.out.println(arr2.length);
////        // 执行结果Exception in thread "main" java.lang.NullPointerException
//
////        boolean ret = false;
////        ret = loginGame();
////        if (!ret) {
////            //处理登陆游戏错误;
////            return;
////        }
////        ret = startMatch();
////        if (!ret) {
////            //处理匹配错误;
////            return;
////        }
////        ret = conGame();
////        if (!ret) {
////            //处理游戏确认错误;
////            return;
////        }
////        ret = choiceChar();
////        if (!ret) {
////            //处理选择英雄错误;
////            return;
////        }
////        ret = loading();
////        if (!ret) {
////            //处理载入游戏错误;
////            return;
////        }
//
////        try {
////            loginGame();
////            startMatch();
////            conGame();
////            choiceChar();
////            loading();
////
////        } catch (loginGame异常) {
////            //处理登陆游戏错误;
////        } catch (startMatch异常) {
////            //处理匹配错误;
////        } catch (conGame异常) {
////            //处理游戏确认错误;
////        } catch (choiceChar异常) {
////            //处理选择英雄错误;
////        } catch (loading异常) {
////            //处理载入游戏错误;
////        }
//
//
//    }
    
//    public static int getElement(int[] array, int index){
//        if(null == array){
//            throw new NullPointerException("传递的数组为null");
//        }
//        if(index < 0 || index >= array.length){
//            throw new ArrayIndexOutOfBoundsException("传递的数组下标越界");
//        }
//        return array[index];
//    }
//    public static void main(String[] args) {
//        int[] array = {1, 2, 3};
//        getElement(array, 3);
//    }
    
}
